package com.ruoyi.app.controller;

import com.ruoyi.app.dto.LocationPointDto;
import com.ruoyi.app.service.IParkService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * App端 - 停车场相关
 */
@CrossOrigin
@RestController
@RequestMapping("/app")
public class ParkController extends BaseController {

    @Autowired
    private IParkService parkService;


    /**
     * 获取停车场列表
     * @return
     */
    @GetMapping("/getParkList")
    public AjaxResult getParkList(LocationPointDto locationPointDto){
        return success(parkService.getParkList(locationPointDto));
    }

}
